package org.aepscolombia.platform.models.entity;
// Generated Jan 13, 2014 2:36:33 PM by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * MonitoringTypes generated by hbm2java
 */
@Entity
@Table(name="monitoring_types"
    ,catalog="madr_bd10"
)
public class MonitoringTypes  implements java.io.Serializable {


     private Integer idMonTyp;
     private String nameMonTyp;
     private boolean statusMonTyp;
     private Set monitorings = new HashSet(0);

    public MonitoringTypes() {
    }

	
    public MonitoringTypes(String nameMonTyp, boolean statusMonTyp) {
        this.nameMonTyp = nameMonTyp;
        this.statusMonTyp = statusMonTyp;
    }
    public MonitoringTypes(String nameMonTyp, boolean statusMonTyp, Set monitorings) {
       this.nameMonTyp = nameMonTyp;
       this.statusMonTyp = statusMonTyp;
       this.monitorings = monitorings;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_mon_typ", unique=true, nullable=false)
    public Integer getIdMonTyp() {
        return this.idMonTyp;
    }
    
    public void setIdMonTyp(Integer idMonTyp) {
        this.idMonTyp = idMonTyp;
    }
    
    @Column(name="name_mon_typ", nullable=false, length=45)
    public String getNameMonTyp() {
        return this.nameMonTyp;
    }
    
    public void setNameMonTyp(String nameMonTyp) {
        this.nameMonTyp = nameMonTyp;
    }
    
    @Column(name="status_mon_typ", nullable=false)
    public boolean isStatusMonTyp() {
        return this.statusMonTyp;
    }
    
    public void setStatusMonTyp(boolean statusMonTyp) {
        this.statusMonTyp = statusMonTyp;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="monitoringTypes")
    public Set getMonitorings() {
        return this.monitorings;
    }
    
    public void setMonitorings(Set monitorings) {
        this.monitorings = monitorings;
    }




}


